package com.wind.taobao.api.jianghu.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;

	/**
	 * taobao.jianghu.friends.areFriends Request
	 * @author fxy
	 *
	 */
	public class JianghuFriendsAreFriendsRequest extends TaobaoJianghuRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.jianghu.friends.areFriends"
		}
		/**
		 *  Y 	 用户1数字id
		 */
		[Bindable]
		public var uid1:String;

		/**
		 * Y 	用户2数字id
		 */
		[Bindable]
		public var uid2:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([uid1, uid2]))
			{
				throw new InvalidRequestParametersException("请求参数[uid1,uid2]不能为空");
			}
		}
	}
}